const { defineConfig } = require('@vue/cli-service')
const path = require('path')

module.exports = defineConfig({
  publicPath:'./',
  transpileDependencies: true,
  lintOnSave:false,
  chainWebpack: (config) => {
    // 路径别名
    config.resolve.alias
      .set('@', path.join(__dirname, 'src'))
  }, 
  devServer: {
    host: 'localhost',
    port: '3370',
    open: true,
    proxy: {
      // '/guzhen': {
      //   target: 'http://123.57.109.182:8081/',
      //   changeOrigin: true,
      //   pathRewrite: {
      //     '^/guzhen': '/guzhen'
      //   }
      // }
    }
  }
})
